package com.ruoyi.carService.service;

import com.ruoyi.system.api.domain.OrderCount;
import com.ruoyi.system.api.domain.OrderDetails;

import java.util.List;

/**
 * 订单统计Service接口
 * 
 * @author ruoyi
 * @date 2024-09-07
 */
public interface IOrderDetailsService 
{

    public int getTodayOrderCount();

    public Long getTodayPayPriceSum();

    /**
     * 查询洗车订单
     *
     * @return 洗车订单
     */
    public List<OrderCount> selectOrderCountList(String startTime,String endTime);
    
    /**
     * 查询订单统计
     * 
     * @param orderDetailsId 订单统计主键
     * @return 订单统计
     */
    public OrderDetails selectOrderDetailsByOrderDetailsId(Long orderDetailsId);

    /**
     * 查询洗车订单列表
     * 
     * @param orderDetails 洗车订单
     * @return 洗车订单集合
     */
    public List<OrderDetails> selectOrderDetailsList(OrderDetails orderDetails);

    /**
     * 新增洗车订单
     * 
     * @param orderDetails 洗车订单
     * @return 结果
     */
    public int insertOrderDetails(OrderDetails orderDetails);

    /**
     * 修改洗车订单
     * 
     * @param orderDetails 洗车订单
     * @return 结果
     */
    public int updateOrderDetails(OrderDetails orderDetails);

    /**
     * 批量删除洗车订单
     * 
     * @param orderDetailsIds 需要删除的洗车订单主键集合
     * @return 结果
     */
    public int deleteOrderDetailsByOrderDetailsIds(Long[] orderDetailsIds);

    /**
     * 删除洗车订单信息
     * 
     * @param orderDetailsId 洗车订单主键
     * @return 结果
     */
    public int deleteOrderDetailsByOrderDetailsId(Long orderDetailsId);
}
